import React from 'react';
//import ReactDOM from 'react-dom/client';
import ReactDOM from 'react-dom';
import {Provider} from "react-redux";
import {BrowserRouter} from "react-router-dom";
import "./assets/css/common.less"
import "./assets/css/font.css"
import "./assets/css/iconfont.css"
import AppRouter from "./router";
import BottomNav from "./components/BottomNav";


import store from "./redux/store";
// const root = ReactDOM.createRoot(document.getElementById('root'));
// root.render(
//    <BrowserRouter>
//     <AppRouter/>
//        <BottomNav/>
//    </BrowserRouter>
//
// );
//react18一下用这种渲染方式
ReactDOM.render(
    <BrowserRouter>
        <Provider store={store}>
        <AppRouter/>
        <BottomNav/>
        </Provider>
    </BrowserRouter>,document.getElementById('root')
)

